<?php

namespace app\model;

use think\Model;


class TaskInfo extends Model
{
    protected $pk = 'id';

    public function getPraisepic1Attr($value){return \tool\Url::FileConversionUrl($value);}
    public function getPraisepic2Attr($value){return \tool\Url::FileConversionUrl($value);}
    public function getPraisepic3Attr($value){return \tool\Url::FileConversionUrl($value);}
    public function getPraisepic4Attr($value){return \tool\Url::FileConversionUrl($value);}
    public function getPraisepic5Attr($value){return \tool\Url::FileConversionUrl($value);}

    public function getTasktypeAttr($value)
    {
        $status = [
            1 => '普通任务',
            2 => '指定文字好评任务',
            3 => '指定图片好评任务',
            4 => '指定视频好评任务',

        ];
        return $status[$value];
    }
}